package com.renjie.day01.homework;

public class Main {
    public static void main(String[] args) {
        Soldier s1 = new Soldier("冲锋兵", "01", "开枪");
        Soldier s2 = new Soldier("冲锋兵", "02", "开枪");
        Soldier s3 = new Soldier("冲锋兵", "03", "开枪");
        Soldier s4 = new Soldier("冲锋兵", "04", "开枪");
        Soldier s5 = new Soldier("冲锋兵", "05", "开枪");
        Soldier s6 = new Soldier("救护兵", "06", "救人");
        Soldier s7 = new Soldier("救护兵", "07", "救人");
        Soldier s8 = new Soldier("救护兵", "08", "救人");
        Soldier s9 = new Soldier("救护兵", "09", "救人");
        Soldier s10 = new Soldier("救护兵", "10", "救人");

        Arm arm = new Arm("1", "第一战队");

        Soldier[] temp = new Soldier[]{s1, s2, s3, s4, s5, s6, s7, s8, s9, s10};
        for (int i = 0; i < temp.length; i++) {
            arm.addSoldier(temp[i], i);
        }
        
        arm.listSoldier();
    }
}
